﻿@model Olemas.ViewModels.HomeViewModel
@foreach (var book in Model.Books)
{
    <a class="recentBookItem" href="@Url.Action("Book", "Details", new { Id = book.Id })">
        <img src="~/Content/Public_Images/thumbs/@book.Book_Pictures.ElementAt(0).Location" alt="raamat"/>
        @Html.LabelFor(name => book.Name, book.Name)
        @Html.LabelFor(author => book.Author, book.Author)
        @Html.LabelFor(price => book.Price, book.Price)
    </a>
}

<div class="loadNextItemsDiv" style="display: none">
    <a id="loadNextBooks">@Model.PagesRemaining</a>
</div>
